import React, { Component } from 'react'
import { renderRoutes } from 'react-router-config';
import { Link } from 'react-router-dom';

export default class layout extends Component {
    render() {
        const { routes } = this.props.route
        return (
            <>
                <div id='controlBoxLeft'>
                    <ul>
                        <li><Link to='/book'>Book</Link></li>
                        <li><Link to='/video'>video</Link></li>
                    </ul>
                </div>
                <div className='content'>
                    {renderRoutes(routes)}
                </div>
            </>
        )
    }
}
